from django.conf.urls.defaults import *

import views, models

urlpatterns = patterns('',
    (r'^clubs/list$', views.listing, {'model':models.Club}, 'club_list'),
    (r'^clubs/add$', views.add_club,{},'add_club'),
    (r'^clubs/(?P<clubCode>\w+)$', views.view_club,{},'view_club'),
    (r'^categories/list$', views.listing, {'model':models.Category}, 'category_details'),
    (r'^players/list$', views.listing, {'model':models.Player}, 'players_details'),
    (r'^referees/list$', views.listing, {'model':models.Referee}, 'referees_details'),
    (r'^category/(?P<categ>\w+)/(?P<tournament>\w*)$', views.category_challengues, {}, 'category_challengues'),
)
